<?php
$Profile = Dracosys::getSessionValue(SESSION_INTERFACE, 'Profile');
?>
<h2>Visualizar Perfil</h2>
<section id="ProfileView">
    <section id="ProfileView_Data">
        <div class="title">Informa&ccedil;&otilde;es do Perfil</div>
        <div class="out_txt big">Nome</div>
        <div class="inp_txt big"><?= $Profile->getStPerfil(); ?></div>
        <div class="out_txt big">Fun&ccedil;&atilde;o</div>
        <div class="inp_txt big"><?= $Profile->getFuncao()->getStNome(); ?></div>
    </section>
    <section id="ProfileView_Actions">
        <div class="title">A&ccedil;&otilde;es</div>
        <?php if($Profile->hasActions()): ?>
        <?php foreach ($Profile->getActions() as $Action ): ?>
        <div class="out_txt big"><?= $Action->getStAcao() ?></div>
        <div class="inp_txt big"><?= $Action->getStDescricao() ?></div>    
        <?php endforeach; ?>
        <?php endif; ?>
    </section>
</section>
